var
	a,b,c,i,n:longint;
begin
	read(a,b,c);
	n:=a;
	while(true)do
	begin
		if (n mod a=0) and (n mod b=0) and (n mod c=0) then
			break;
		inc(n);
	end;

	for i:=0 to 9 do
		writeln(i*n+1);
end.
